

// routeView 
interface viewList {
    viewList: Array<object>
}
let state = {
    viewList: {}//获取单个视角
}
let mutations = {
    SETVIEWLIST(state: viewList, playload: any) {
        state.viewList = playload
    },
    DEL(state: viewList) {
        state.viewList = <any>{}
    }
}
let actions = {
    setviewlist(context: any, playload: any) {
        context.commit("SETVIEWLIST", playload)
    }
}
let getters = {
    // 返回单个视角参数
    getList(state: viewList) {
        return state.viewList
    }
}
export default {
    state, mutations, actions, getters,
    namespaced: true
}